<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%
	request.setAttribute("title","资产详情");
	request.setAttribute("modelConfigPath", "money");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style type="text/css">
</style>

<t:panel cssClass="panel-flat form-detailed" customBody="true" customHead="true">
	<div class="detailed-navbar-content panel-body"> 
	<t:form commandName="asset" action="/admin/money/asset/save" method="post" cssClass="form-horizontal">
		<div class="hide"> 
		<t:hidden path ="assetId"/> 
		</div>
		<t:formgroup>
			<t:label path="assetName" cssClass="col-sm-2"/>
			<t:input path="assetName" colClass="col-sm-4"/>
			<t:label path="useDate" cssClass="col-sm-2" />
			<t:input path="useDate" colClass="col-sm-4" />
		</t:formgroup>
		<t:formgroup>
			<t:label path="buyerName" cssClass="col-sm-2" />
			<t:input path="buyerName" colClass="col-sm-4" />
			<t:label path="buyDate" cssClass="col-sm-2" />
			<t:date path="buyDate" colClass="col-sm-4" />
		</t:formgroup>
		<t:formgroup>
			<t:label path="number" cssClass="col-sm-2"/>
			<t:input path="number" colClass="col-sm-4"/>
			<t:label path="price" cssClass="col-sm-2"/>
			<t:input path="price" colClass="col-sm-4"/>
		</t:formgroup>
		<t:formgroup>
			<t:label path ="state" cssClass="col-sm-2" />
			<t:select2 path ="state" colClass="col-sm-4" />
		</t:formgroup>
		</t:form>
		</div>
		<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()" cssClass="btn-info" csize="sm">保存</t:button>
		</t:panelFoot>
</t:panel>

<script type="text/javascript">
	function saveData(){
		if (!$("form:first").valid()){
			return;
		}
		$("form:first").submit();
	}	
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
